package cn.kent.strategyPattern;

/**
 * 计谋有了还需要有锦囊
 *
 * @author kent
 * @date 2021/5/8 9:47
 */
public class Context {
    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }


    /**
     * 使用计谋，打开锦囊
     */
    public void operate() {
        this.strategy.operate();
    }
}
